<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Spec extends Model
{
    /**
     * 一个规格名、对应多个规格值
     * 一对多
     */
    public function specValue(){
        return $this->hasMany(SpecValue::class,'spec_id','id');
    }
}
